﻿package com.example.tonjie.software_park_association;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;

/**
 * Created by justin on 2017/5/5.
 */

public class opinion extends Activity implements View.OnClickListener{
    /*    private EditText Opinion_mEditText;
        private EditText Opinion_Email;*/
    private Button Opinion_sendButton;
    private ImageView Opinion_imageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.opinion_layout);
        Opinion_sendButton = (Button) findViewById(R.id.sendButton);
        Opinion_sendButton.setOnClickListener(this);
        Opinion_imageView=(ImageView)findViewById(R.id.opinion_imageView);
        Opinion_imageView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
            switch (v.getId()){
                case R.id.sendButton:
                    Toast.makeText(opinion.this,"反馈成功",Toast.LENGTH_SHORT).show();
                    Intent opinion_intent=new Intent(opinion.this,Setting.class);
                    startActivity(opinion_intent);
                case R.id.opinion_imageView:

                    startActivity(new Intent(opinion.this,Setting.class));
                    finish();

            }
    }
}
